<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;
//登录路由
//Route::get('/', 'phpcode/info');
Route::get('/', 'index/index');
Route::get('/index', 'index/index');
Route::get('/index/getC', 'index/getC');
Route::get('/wecode', 'index/wecode');
Route::get('/c', 'c/index');
Route::post('/login','login/index')->middleware([\app\middleware\Login::class]);
Route::get('/admin/token', 'admin/token');
//->middleware([\app\middleware\Token::class])
//把需要验证权限的路由放一起
Route::group('/', function(){
    Route::get('/phpcode/index', 'phpcode/index');
    Route::get('/phpcode/login', 'phpcode/login');
});

